package web

import (
	"gitee.com/crack007/goose/gscore"
)

type DefaultHttpServerHandle struct {
	server *HttpServer
}

func (x *DefaultHttpServerHandle) OnInjectServer(iServer gscore.IServer) {
	if v, ok := iServer.(*HttpServer); ok {
		x.server = v
		return
	}

	panic("OnInjectServer error")
}

func (x *DefaultHttpServerHandle) OnInitResource() {

}

func (x *DefaultHttpServerHandle) OnInitRouter() {

}

func (x *DefaultHttpServerHandle) OnBeforeInit() {

}

func (x *DefaultHttpServerHandle) OnInitFlags() {

}

func (x *DefaultHttpServerHandle) OnInitConfig() {

}

func (x *DefaultHttpServerHandle) OnInitService() {

}

func (x *DefaultHttpServerHandle) OnBeforeRun() {

}

func (x *DefaultHttpServerHandle) OnShutdown() {

}

func (x *DefaultHttpServerHandle) GetHttpServer() *HttpServer {
	return x.server
}
